Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 8 - Light Objects / Light Objects Reference
Light Objects Routines / Managing Lights


Q3Light_GetType

You can use the Q3Light_GetType function to get the type of a light object.

TQ3ObjectType Q3Light_GetType (TQ3LightObject light);
light
A light object.
DESCRIPTION
The Q3Light_GetType function returns, as its function result, the type of the light object specified by the light parameter. The types of light objects currently supported by QuickDraw 3D are defined by these constants:

kQ3LightTypeAmbient
kQ3LightTypeDirectional
kQ3LightTypePoint
kQ3LightTypeSpot
If the specified light object is invalid or is not one of these types, Q3Light_GetType returns the value kQ3ObjectTypeInvalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996